package ads.pin.pinmon.extras;

import com.badlogic.gdx.utils.TimeUtils;

public class Timer {

	private long m_start;
	private long m_secondsToWait;

	public Timer(long secondsToWait) {
		this.m_secondsToWait = secondsToWait;
	}

	public void start() {
		m_start = TimeUtils.millis() / 1000;
	}

	public boolean hasCompleted() {
		return TimeUtils.millis() / 1000 - m_start >= m_secondsToWait;
	}

}
